<?php
	session_start();
	include('config.php');
	include('user.php');
	include('plan.php');
	new Config();
	$user = new User;
	$req = new Plan;
	//$req->setAll(8,2,$user->sessionCheck(),2012,2,0,0);
	$req->setAll($_GET['id'],$_GET['sid'],$user->sessionCheck(),$_GET['year'],$_GET['term'],0,0);
	echo $req->edit();
?>